package day09;

/**
 * Created by Shinelon on 2016/9/29.
 */
public class StringO {
    public static void main(String[] args) {
        //oT eb ro ton ot eb
        String sourc = "To be or not to be";
        String result = "";
        String[] strings=sourc.split(" ");
        for (String string : strings) {
            char[] chars = string.toCharArray();
            String newWord = "";
            for (int i = chars.length - 1; i >= 0; i--) {
                newWord += chars[i];
            }
            result += newWord + " ";
        }
        System.out.println(result.substring(0, result.length() -1));
    }
}
